﻿ 
using System;
using System.Collections.Generic;

namespace CarTrackr.Data
{
    public interface IRepository
    {
        //User
        List<T> ListUsers<T>();
        T GetUserByName<T>(string userName);
  
        //Car
        List<T> ListCars<T>(Guid userId);
        T GetCarById<T>(Guid id);
        T GetCarByLicensePlate<T>(string licensePlate);
        void AddCar<T>(T car,Guid userId);
        void UpdateCar<T>(T car);
        void RemoveCar(Guid id);

        //Refuelling
        List<T> ListRefuellings<T>(Guid id);
        void AddRefuelling<T>(T refuelling,Guid carId);
        void RemoveRefuelling(Guid id);
    
    }
}

 